body {
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
    color: #000;
    background: #f2f2f2;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: #2eaae0;
}


/* div用盒子模型 */

div {
    box-sizing: border-box;
}


/* 搜索框 */

.search-index {
    display: flex;
    position: fixed;
    /*有了定位用margin居中无效，用left+translateX(-50%) */
    top: 0;
    left: 50%;
    
    /* transform: translate(-50%,-50%)就是实现水平垂直居中 */
    /* 实现水平居中 */
    transform: translateX(-50%);
    /* 固定的盒子应该有宽度 */
    width: 100%;
    min-width: 320px;
    max-width: 540px;
    height: 44px;
    background-color: #f6f6f6;
}

.search {
    height: 30px;
    border: 1px solid #ccc;
    flex: 1;
    margin: 10px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: gray;
}

.user {
    width: 44px;
    height: 44px;
    text-align: center;
    color: #2eaae0;
}


/* 焦点图 */

.focus {
    z-index: -1;
    position: relative;
    padding-top: 50px;
    overflow: hidden;
}

.focus img {
    width: 100%;
    height: 130px;
}

.focus ul {
    overflow: hidden;
    /*清除浮动 */
    width: 500%;
    margin-left: -100%;
}

.focus ul li {
    float: left;
    width: 20%;
}

.focus ol {
    position: absolute;
    bottom: 5px;
    right: 5px;
}

.focus ol li {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: rgb(110, 106, 100);
    border-radius: 2px;
    transition: all 0.1s;
}

.focus ol li.active {
    width: 15px;
}


/* 导航栏 */

.local-nav {
    display: flex;
    height: 64px;
    background-color: #fff;
    margin: 3px 4px;
    border-radius: 8px;
}

.local-nav li {
    flex: 1;
}

.local-nav a {
    display: flex;
    flex-direction: column;
    /*flex默认主轴是X轴，把主轴设为Y轴，就是上下对齐 */
    align-items: center;
    /*子元素垂直居中 */
    font-size: 12px;
}


/* 各个icon图片 */

.local-nav li [class^="local-nav-icon"] {
    width: 32px;
    height: 32px;
    margin-top: 8px;
    background: url(images/local-nav-icon.png) no-repeat 0 0;
    background-size: 32px auto;
}

.local-nav li .local-nav-icon-icon2 {
    background-position: 0 -32px;
}

.local-nav li .local-nav-icon-icon3 {
    background-position: 0 -64px;
}

.local-nav li .local-nav-icon-icon4 {
    background-position: 0 -96px;
}

.local-nav li .local-nav-icon-icon5 {
    background-position: 0 -128px;
}


/* 主导航栏 */

nav {
    border-radius: 8px;
    margin: 0 4px 3px;
    overflow: hidden;
}

.nav-common {
    display: flex;
    height: 66px;
    text-align: center;
    line-height: 66px;
}

.nav-common:nth-child(2) {
    margin: 3px 0;
}

.nav-common .nav-items:nth-child(1) {
    flex: 0 1 31%;
    background: url(images/hotel.png) no-repeat bottom center;
    background-size: 70px auto;
}

.nav-common .nav-items:nth-child(2) {
    flex: 0 1 23%;
    border-left: 1px solid #f2f2f2;
    background: url(images/hotel.png) no-repeat bottom center;
    background-size: 60px auto;
}

.nav-common .nav-items:nth-child(3) {
    flex: 0 1 46%;
    border-left: 1px solid #f2f2f2;
}

.nav-items-3,
.nav-items-4 {
    flex: 0 1 23%;
    border-left: 1px solid #f2f2f2;
}


/* 渐变 */

.nav-common:nth-child(1) {
    background: -webkit-linear-gradient(left, #fa5a55, #fa994d);
}

.nav-common:nth-child(2) {
    background: -webkit-linear-gradient(left, #4b90ed, #53bced);
}

.nav-common:nth-child(3) {
    background: -webkit-linear-gradient(left, #34c2a9, #6cd559);
}

.nav-common a {
    color: #fff;
}


/* 侧导航栏 */

.subnav-entry {
    display: flex;
    border-radius: 8px;
    background-color: #fff;
    margin: 0 4px;
    flex-wrap: wrap;
}

.subnav-entry li {
    flex: 20%;
}

.subnav-entry a {
    display: flex;
    flex-direction: column;
    /*flex默认主轴是X轴，把主轴设为Y轴，就是上下对齐 */
    align-items: center;
    /*子元素垂直居中 */
    font-size: 12px;
    color: black;
    margin-bottom: 4px;
}

.subnav-entry-icon {
    height: 28px;
    width: 28px;
    background-color: pink;
    margin-top: 4px;
    background: url(images/subnav.png) no-repeat;
    background-size: 28px auto;
}


/* 广告 */

.sales-box {
    background-color: #fff;
    margin: 4px;
    border-top: 1px solid #bbb;
}

.sales-hd {
    position: relative;
    height: 44px;
    border-bottom: 1px solid #ccc;
}

.sales-hd h2 {
    position: relative;
    text-indent: -999px;
    overflow: hidden;
}

.sales-hd h2::after {
    position: absolute;
    top: 15px;
    left: 20px;
    content: "";
    width: 79px;
    height: 15px;
    background: url(images/rmhd.png) no-repeat 0 -20px;
    background-size: 79px auto;
}

.more {
    position: absolute;
    right: 5px;
    top: 10px;
    border-radius: 50px;
    background: -webkit-linear-gradient(left, #ff506c, #ff6bc6);
    color: #fff;
    padding: 3px 10px;
    font-size: 10px;
}

.gg img {
    width: 100%;
}


/* 底部 */

.footer {
    display: flex;
    background: #fff;
}

.footer li {
    flex: 1;
}

.footer li a {
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0 10px 0;
}

.font,
.font a {
    text-align: center;
    color: #999;
    margin: 5px 0 10px 0;
}